-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for TanStack Start #458
Conversation
🦋 Changeset detectedLatest commit: b55c65d The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@content-collections/cli
@content-collections/installer
content-collections
@content-collections/integrations
@content-collections/core
@content-collections/markdown
@content-collections/mdx
@content-collections/next
@content-collections/remix-vite
@content-collections/vinxi
@content-collections/vite
commit: |
What's the status? Can I help in any way? |
Sorry, i've been very busy in the last days. Help with testing would be good. You could use the pre release of the plugin: npm install -D https://pkg.pr.new/sdorra/content-collections/@content-collections/vinxi@458
// or
pnpm add -D https://pkg.pr.new/sdorra/content-collections/@content-collections/vinxi@458 And then follow the installation guide (step one can be skipped). |
I confirm that it works perfectly and it also miraculously fixes the hydration issue I mention here. 🙌 |
@baptisteArno Can you try deleting the In dev the
|
Right, I did not try the build script. I get the same error: vinxi v0.5.1
⚙ Building your app...
vinxi v0.5.1
⚙ Building your router client...
📦 Compiling client router...
vinxi building router client in client mode
♻️ Generating routes...
✅ Processed routes in 126ms
vite v6.0.7 building for production...
✓ 89 modules transformed.
x Build failed in 226ms
[3:25:08 PM] ERROR [vite:load-fallback] Could not load /Users/baptistearno/Dev/typebot.io/apps/landing-page/.content-collections/generated (imported by app/routes/_layout/blog/$slug.tsx): ENOENT: no such file or directory, open '/Users/baptistearno/Dev/typebot.io/apps/landing-page/.content-collections/generated' It seems it does not compile the content files |
Ok, it looks like that TanStack Start builds the client bundle first, but the vinxi adapter runs only on ssr. I've to check if Solid Start breaks if i make client the default. |
No Solid Starts breaks, because it starts with the ssr bundle. |
Rename the package to make clear, that it can be used for other frameworks such as TanStack Start.
We build our collections now on first configured non static router, instead of always build with the ssr router. This fixes production builds of TanStack Start.
Update Solid and Solid Start to their latest versions to ensure that the Vinxi adapter works with these versions.
9a1f76a
to
b55c65d
Compare
I think i found a solution which works for both (91c7204). |
@baptisteArno @ally-ahmed can you test again? This time with |
It looks like it is working well both in dev and prod. 👍🏽 @sdorra |
Closes #450